﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __24C68C65_3D75_4f49_9391_7857CDA39B43__
#define __24C68C65_3D75_4f49_9391_7857CDA39B43__

#include "../macro/head.h"
#include "../release/head.h"

/////////////////////////////////////////////////////////////////////////////////////////
// 
namespace xos
{
    // 
    // lock interface
    // 
    class i_lock : public i_release
    {
    public:
        virtual ~i_lock(){}

    public:
        // 
        // un lock
        // 
        virtual int un_lock() = 0;

        // 
        // lock
        // 
        virtual int lock() = 0;
    };
}

#endif // __24C68C65_3D75_4f49_9391_7857CDA39B43__
